﻿using JIESHINet.IService;
using JIESHINet.Model.Vo;
using JIESHINet.Repository.Repository;

namespace JIESHINet.Service
{
    public class UserService : IUserService
    {
        public async Task<List<UserVo>> Query()
        {
           var userdata = new UserRepository();
            var users = await userdata.Query();
            return users.Select(d => new UserVo() { UserName = d.Name }).ToList(); 
        }
    }
}